x11: make the tool lookup dependent on the hw id as well
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 14 Dec 2018 05:28:29 +0000 (15:28 +1000)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 18 Dec 2018 20:41:49 +0000 (21:41 +0100)
commit38cba6895a5749386954b6de3ac8a6723f4fc5db
tree5ed40d80176ac4b3095a99d2f1d2edcc97a63dde
parente95e0458988821ce4d8915c243fa79398515ed27
x11: make the tool lookup dependent on the hw id as well

Tools on the same physical item have the same serial number, so the eraser
and the pen part of a single pen share that serial number. With the current
lookup code, we'll always return whichever tool comes first into proximity.

Change the code to use the hw id in addition to the serial number, this way we
can differ between two tools.
gdk/gdkseat.c
gdk/gdkseatdefault.c
gdk/gdkseatprivate.h
gdk/x11/gdkdevicemanager-xi2.c